﻿using System.ComponentModel.DataAnnotations;

namespace AvoidForgettingApi.Entities.Models.User
{
    /// <summary>
    /// 获取token请求类
    /// </summary>
    public class LoginRequest
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage ="用户名不能为空")]
        public string Code { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage ="用户凭证不能为空")]
        public string Credential { get; set; }
    }
}
